package cn.com.connected.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created by sms on 2018/11/18.
 */

@Getter
@Setter
public class FindPwdDto {

    @NotEmpty(message = "请输入手机号")
    @ApiModelProperty(notes = "手机号")
    private String mobile;

    @NotNull(message = "请输入短信验证码")
    @ApiModelProperty(notes = "短信验证码")
    private Integer smsCode;

    @NotEmpty(message = "请输入密码")
    @Length(min = 6,message = "长度必须六位及以上")
    @ApiModelProperty(notes = "密码")
    private String pwd;

}
